import request from '@/utils/request'

const prefixUrl = 'web/saleMonth'

// 销售添加每周目标
export function queryThisMonthTarget(params) {
  return request({
    url: prefixUrl + '/queryThisMonthTarget',
    method: 'get',
    params
  })
}

// 销售添加签约时间预估
export function addSigningTime(data) {
  return request({
    url: prefixUrl + '/addOrEditSigningTime',
    method: 'post',
    content_type: 'json',
    data
  })
}

// 销售保存月度目标数据
export function saveMonthCustomerTarget(data) {
  return request({
    url: prefixUrl + '/saveMonthCustomerTarget',
    method: 'post',
    content_type: 'json',
    data
  })
}

// 销售客户跟进记录
export function addVisitRecord(data) {
  return request({
    url: prefixUrl + '/addVisitRecord',
    method: 'post',
    content_type: 'json',
    data
  })
}

// 获取客户的历史签约时间数据
export function signatureHistoryList(params) {
  return request({
    url: prefixUrl + '/signatureHistoryList',
    method: 'get',
    params
  })
}

// 获取客户的历史签约时间数据
export function nextMonthTarget(params) {
  return request({
    url: prefixUrl + '/nextMonthTarget',
    method: 'get',
    params
  })
}

// 确认收到批注
export function confirmReceive(params) {
  return request({
    url: prefixUrl + '/confirmReceive',
    method: 'post',
    params
  })
}

// 销售添加执行时间预估
export function addImplementTime(data) {
  return request({
    url: prefixUrl + '/addOrEditImplementTime',
    method: 'post',
    content_type: 'json',
    data
  })
}

// 销售添加回筐时间预估
export function addPaymentTime(data) {
  return request({
    url: prefixUrl + '/addOrEditPaymentTime',
    method: 'post',
    content_type: 'json',
    data
  })
}


// 获取客户的历史执行时间数据
export function implementHistoryList(params) {
  return request({
    url: prefixUrl + '/implementHistoryList',
    method: 'get',
    params
  })
}

// 获取客户的历史回款时间数据
export function paymentHistoryList(params) {
  return request({
    url: prefixUrl + '/paymentHistoryList',
    method: 'get',
    params
  })
}



